import {ReqGoodsList} from '@/api/index'
let state={
    goodslist:{}
}
let mutations={
    SAVE_GOODS_lIST(state,value){
        state.goodslist = value
    }
}
let actions={
    async asyncgetGoodsList ({commit},params){
        let data = await ReqGoodsList(params);
        commit('SAVE_GOODS_lIST',data)
    }
}

export default {
    namespaced:true,
    state,
    mutations,
    actions
}